package com.ruoyi.community.service.impl;

import com.ruoyi.community.domain.Buildings;
import com.ruoyi.community.mapper.BuildingsMapper;
import com.ruoyi.community.service.IBuildingsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 楼栋管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-04-08
 */
@Service
public class BuildingsServiceImpl implements IBuildingsService
{
    @Autowired
    private BuildingsMapper buildingsMapper;

    /**
     * 查询楼栋管理
     * 
     * @param id 楼栋管理主键
     * @return 楼栋管理
     */
    @Override
    public Buildings selectBuildingsById(Long id)
    {
        return buildingsMapper.selectBuildingsById(id);
    }

    /**
     * 查询楼栋管理列表
     * 
     * @param buildings 楼栋管理
     * @return 楼栋管理
     */
    @Override
    public List<Buildings> selectBuildingsList(Buildings buildings)
    {
        return buildingsMapper.selectBuildingsList(buildings);
    }

    /**
     * 新增楼栋管理
     * 
     * @param buildings 楼栋管理
     * @return 结果
     */
    @Override
    public int insertBuildings(Buildings buildings)
    {
        return buildingsMapper.insertBuildings(buildings);
    }

    /**
     * 修改楼栋管理
     * 
     * @param buildings 楼栋管理
     * @return 结果
     */
    @Override
    public int updateBuildings(Buildings buildings)
    {
        return buildingsMapper.updateBuildings(buildings);
    }

    /**
     * 批量删除楼栋管理
     * 
     * @param ids 需要删除的楼栋管理主键
     * @return 结果
     */
    @Override
    public int deleteBuildingsByIds(Long[] ids)
    {
        return buildingsMapper.deleteBuildingsByIds(ids);
    }

    /**
     * 删除楼栋管理信息
     * 
     * @param id 楼栋管理主键
     * @return 结果
     */
    @Override
    public int deleteBuildingsById(Long id)
    {
        return buildingsMapper.deleteBuildingsById(id);
    }
}
